package cn.kkcxy.blog.system.service.sys;

import cn.kkcxy.blog.core.dto.admin.ManageGetUserListDTO;
import cn.kkcxy.blog.core.dto.client.CheckUserAccountParamsDTO;
import cn.kkcxy.blog.core.entity.sys.SysUser;
import cn.kkcxy.blog.core.vo.admin.system.SimpleUserInfoVO;
import cn.kkcxy.blog.core.vo.admin.system.UserDetailsVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author kk
* @description 针对表【sys_user】的数据库操作Service
* @createDate 2024-09-11 00:50:27
*/
public interface SysUserService extends IService<SysUser> {


    /**
     * @description: 查询账号是否被禁用或删除
     * @author: kkcxy
     * @date: 2024/9/11 23:53
     * @param: [dto]
     * @return: cn.kkcxy.blog.core.entity.sys.SysUser
     **/
    SysUser selectUserAccountDisabled(CheckUserAccountParamsDTO dto);

    /**
     * @description: 用户注册
     * @author: kkcxy
     * @date: 2024/9/12 0:39
     * @param: [dto]
     * @return: SysUserPO
     **/
    SysUser register(CheckUserAccountParamsDTO dto);

    /**
     * 得到用户简易信息列表
     */
    List<SimpleUserInfoVO> getSimpleUserInfoList(ManageGetUserListDTO manageGetUserListDTO);

    /**
     * 得到用户详情
     */
    UserDetailsVO getUserDetails(String userId);
}
